Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfRefExt Class / TryResolve Method / TryResolve<T>(IPdfRef,T,Boolean) Method
The type of indirect PDF object.
The current IPdfRef.
OUT: The referenced PDF indirect object.
Indicates whether to add a warning if referenced can't be resolved to an object of specified type.

In This Topic
    TryResolve<T>(IPdfRef,T,Boolean) Method
    In This Topic
    Tries to return actual IPdfObject referenced by the IPdfRef.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryResolve(Of T As IPdfObject)( _
       ByVal pr As IPdfRef, _
       ByRef value As T, _
       ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryResolve<T>( 
       IPdfRef pr,
       out T value,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    pr
    The current IPdfRef.
    value
    OUT: The referenced PDF indirect object.
    addWarning
    Indicates whether to add a warning if referenced can't be resolved to an object of specified type.

    Type Parameters

    T
    The type of indirect PDF object.

    Return Value

    true if successful, false otherwise.
    See Also